LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)
MY_SOURCE_PATH := ../../../Game
MY_SOURCE_PATH_PNG := ../../../Game/libpng
MY_SOURCE_PATH_ZIP := ../../../Game/libzip
LOCAL_MODULE    := gamendk
LOCAL_CFLAGS    := -Werror -DANDROID=1
LOCAL_SRC_FILES := $(MY_SOURCE_PATH)/Animation.cpp \
					$(MY_SOURCE_PATH)/AnimationSprite.cpp \
					$(MY_SOURCE_PATH)/DiamondGame.cpp \
					$(MY_SOURCE_PATH)/Game.cpp \
					$(MY_SOURCE_PATH)/Graphics.cpp \
					$(MY_SOURCE_PATH)/Image.cpp \
					$(MY_SOURCE_PATH)/Module.cpp \
					$(MY_SOURCE_PATH)/PngImage.cpp \
					$(MY_SOURCE_PATH)/Rect.cpp \
					$(MY_SOURCE_PATH)/ResMgr.cpp \
					$(MY_SOURCE_PATH)/Sprite.cpp \
					$(MY_SOURCE_PATH)/StateMgr.cpp \
					$(MY_SOURCE_PATH)/TestState.cpp \
					$(MY_SOURCE_PATH)/Texture.cpp \
					$(MY_SOURCE_PATH)/TimeController.cpp \
					$(MY_SOURCE_PATH)/Utils.cpp \
					$(MY_SOURCE_PATH)/Vector.cpp \
					$(MY_SOURCE_PATH)/ApkLoader.cpp \
					$(MY_SOURCE_PATH)/Diamond.cpp \
					$(MY_SOURCE_PATH)/MoveableObj.cpp \
					$(MY_SOURCE_PATH)/Object.cpp \
					$(MY_SOURCE_PATH)/Board.cpp \
					$(MY_SOURCE_PATH)/Cell.cpp \
					$(MY_SOURCE_PATH)/PlayState.cpp \
					$(MY_SOURCE_PATH)/ZoomEffect.cpp \
					$(MY_SOURCE_PATH)/IntroState.cpp \
					$(MY_SOURCE_PATH)/WinState.cpp \
					$(MY_SOURCE_PATH)/GameOverState.cpp \
					$(MY_SOURCE_PATH)/GameTimer.cpp \
					$(MY_SOURCE_PATH)/ScoreBoard.cpp \
					$(MY_SOURCE_PATH)/GameUtils.cpp \
					$(MY_SOURCE_PATH)/Button.cpp \
					$(MY_SOURCE_PATH)/MainMenuState.cpp \
					$(MY_SOURCE_PATH)/Background.cpp \
					$(MY_SOURCE_PATH)/Box.cpp \
					$(MY_SOURCE_PATH)/Level.cpp \
					$(MY_SOURCE_PATH)/GameCommonInfo.cpp \
					$(MY_SOURCE_PATH)/ChooseIslandState.cpp \
					$(MY_SOURCE_PATH)/ChooseLevelState.cpp \
					$(MY_SOURCE_PATH_PNG)/adler32.c \
					$(MY_SOURCE_PATH_PNG)/compress.c \
					$(MY_SOURCE_PATH_PNG)/crc32.c \
					$(MY_SOURCE_PATH_PNG)/deflate.c \
					$(MY_SOURCE_PATH_PNG)/example.c \
					$(MY_SOURCE_PATH_PNG)/gzclose.c \
					$(MY_SOURCE_PATH_PNG)/gzlib.c \
					$(MY_SOURCE_PATH_PNG)/gzread.c \
					$(MY_SOURCE_PATH_PNG)/gzwrite.c \
					$(MY_SOURCE_PATH_PNG)/infback.c \
					$(MY_SOURCE_PATH_PNG)/inffast.c \
					$(MY_SOURCE_PATH_PNG)/inflate.c \
					$(MY_SOURCE_PATH_PNG)/inftrees.c \
					$(MY_SOURCE_PATH_PNG)/png.c \
					$(MY_SOURCE_PATH_PNG)/pngerror.c \
					$(MY_SOURCE_PATH_PNG)/pngget.c \
					$(MY_SOURCE_PATH_PNG)/pngmem.c \
					$(MY_SOURCE_PATH_PNG)/pngpread.c \
					$(MY_SOURCE_PATH_PNG)/pngread.c \
					$(MY_SOURCE_PATH_PNG)/pngrio.c \
					$(MY_SOURCE_PATH_PNG)/pngrtran.c \
					$(MY_SOURCE_PATH_PNG)/pngrutil.c \
					$(MY_SOURCE_PATH_PNG)/pngset.c \
					$(MY_SOURCE_PATH_PNG)/pngtest.c \
					$(MY_SOURCE_PATH_PNG)/pngtrans.c \
					$(MY_SOURCE_PATH_PNG)/pngwio.c \
					$(MY_SOURCE_PATH_PNG)/pngwrite.c \
					$(MY_SOURCE_PATH_PNG)/pngwtran.c \
					$(MY_SOURCE_PATH_PNG)/pngwutil.c \
					$(MY_SOURCE_PATH_PNG)/trees.c \
					$(MY_SOURCE_PATH_PNG)/uncompr.c \
					$(MY_SOURCE_PATH_PNG)/zutil.c \
					$(MY_SOURCE_PATH_ZIP)/mkstemp.c \
					$(MY_SOURCE_PATH_ZIP)/zip_add.c \
					$(MY_SOURCE_PATH_ZIP)/zip_add_dir.c \
					$(MY_SOURCE_PATH_ZIP)/zip_close.c \
					$(MY_SOURCE_PATH_ZIP)/zip_delete.c \
					$(MY_SOURCE_PATH_ZIP)/zip_dirent.c \
					$(MY_SOURCE_PATH_ZIP)/zip_entry_free.c \
					$(MY_SOURCE_PATH_ZIP)/zip_entry_new.c \
					$(MY_SOURCE_PATH_ZIP)/zip_err_str.c \
					$(MY_SOURCE_PATH_ZIP)/zip_error.c \
					$(MY_SOURCE_PATH_ZIP)/zip_error_clear.c \
					$(MY_SOURCE_PATH_ZIP)/zip_error_get.c \
					$(MY_SOURCE_PATH_ZIP)/zip_error_get_sys_type.c \
					$(MY_SOURCE_PATH_ZIP)/zip_error_strerror.c \
					$(MY_SOURCE_PATH_ZIP)/zip_error_to_str.c \
					$(MY_SOURCE_PATH_ZIP)/zip_fclose.c \
					$(MY_SOURCE_PATH_ZIP)/zip_file_error_clear.c \
					$(MY_SOURCE_PATH_ZIP)/zip_file_error_get.c \
					$(MY_SOURCE_PATH_ZIP)/zip_file_get_offset.c \
					$(MY_SOURCE_PATH_ZIP)/zip_file_strerror.c \
					$(MY_SOURCE_PATH_ZIP)/zip_filerange_crc.c \
					$(MY_SOURCE_PATH_ZIP)/zip_fopen.c \
					$(MY_SOURCE_PATH_ZIP)/zip_fopen_index.c \
					$(MY_SOURCE_PATH_ZIP)/zip_fread.c \
					$(MY_SOURCE_PATH_ZIP)/zip_free.c \
					$(MY_SOURCE_PATH_ZIP)/zip_get_archive_comment.c \
					$(MY_SOURCE_PATH_ZIP)/zip_get_archive_flag.c \
					$(MY_SOURCE_PATH_ZIP)/zip_get_file_comment.c \
					$(MY_SOURCE_PATH_ZIP)/zip_get_name.c \
					$(MY_SOURCE_PATH_ZIP)/zip_get_num_files.c \
					$(MY_SOURCE_PATH_ZIP)/zip_memdup.c \
					$(MY_SOURCE_PATH_ZIP)/zip_name_locate.c \
					$(MY_SOURCE_PATH_ZIP)/zip_new.c \
					$(MY_SOURCE_PATH_ZIP)/zip_open.c \
					$(MY_SOURCE_PATH_ZIP)/zip_rename.c \
					$(MY_SOURCE_PATH_ZIP)/zip_replace.c \
					$(MY_SOURCE_PATH_ZIP)/zip_set_archive_comment.c \
					$(MY_SOURCE_PATH_ZIP)/zip_set_archive_flag.c \
					$(MY_SOURCE_PATH_ZIP)/zip_set_file_comment.c \
					$(MY_SOURCE_PATH_ZIP)/zip_set_name.c \
					$(MY_SOURCE_PATH_ZIP)/zip_source_buffer.c \
					$(MY_SOURCE_PATH_ZIP)/zip_source_file.c \
					$(MY_SOURCE_PATH_ZIP)/zip_source_filep.c \
					$(MY_SOURCE_PATH_ZIP)/zip_source_free.c \
					$(MY_SOURCE_PATH_ZIP)/zip_source_function.c \
					$(MY_SOURCE_PATH_ZIP)/zip_source_zip.c \
					$(MY_SOURCE_PATH_ZIP)/zip_stat.c \
					$(MY_SOURCE_PATH_ZIP)/zip_stat_index.c \
					$(MY_SOURCE_PATH_ZIP)/zip_stat_init.c \
					$(MY_SOURCE_PATH_ZIP)/zip_strerror.c \
					$(MY_SOURCE_PATH_ZIP)/zip_unchange.c \
					$(MY_SOURCE_PATH_ZIP)/zip_unchange_all.c \
					$(MY_SOURCE_PATH_ZIP)/zip_unchange_archive.c \
					$(MY_SOURCE_PATH_ZIP)/zip_unchange_data.c \
					
LOCAL_LDLIBS    := -llog -lGLESv1_CM

include $(BUILD_SHARED_LIBRARY)
